<%--
  Created by IntelliJ IDEA.
  User: Hasee
  Date: 2021/6/21
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <style>
        #errormsg {
            background: aquamarine;
            margin: 10px auto;
            height: 40px;
            width: 300px;
            text-align: center;
            color: #ff0000;
        }
    </style>
    <script>
    window.onload=function () {
        var div=document.querySelector("#errormsg");
        if(div.innerHTML!=""){
            div.style.display="bolok";
            setTimeout(function () {
                div.style.display="none";
            },3000)
        }else{
            div.style.display="none";
        }
    }
</script>
</head>
<body>
    <h1>登录</h1>
    <div id="errormsg">${msg}</div>
    <form action="/quanxian/login" method="post">
        用户名:<input type="text" name="act"><br/>
        密码:<input type="password" name="pwd" ><br/>
        <button>登录</button>
    </form>
</body>
</html>
